package InterceptingFilterPattern;

/**
 * @Author: zheng
 * @CreateTime: 2022-08-27  15:59
 * @Description:
 * @Version: 1.0
 */
public class InterceptingFilterDemo {
    public static void main(String[] args) {
        FilterManager filterManager = new FilterManager(new Target());
        filterManager.setFilter(new AuthenticationFilter());
        filterManager.setFilter(new DebugFilter());

        Client client = new Client();
        client.setFilterManager(filterManager);
        client.sendRequest("HOME");
    }
}
